
package com.mu.rai.services;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlType;



/**
 * <p>Java class for publishedNetworkAttack complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="publishedNetworkAttack">
 *   &lt;complexContent>
 *     &lt;extension base="{http://services.rai.mu.com}attack">
 *       &lt;sequence>
 *         &lt;element name="evasion" type="{http://services.rai.mu.com}evasion"/>
 *         &lt;element name="filters" minOccurs="0">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;sequence>
 *                   &lt;choice maxOccurs="unbounded" minOccurs="0">
 *                     &lt;element name="affected_filter" type="{http://services.rai.mu.com}affectedFilter"/>
 *                     &lt;element name="date_filter" type="{http://services.rai.mu.com}dateFilter"/>
 *                     &lt;element name="direction_filter" type="{http://services.rai.mu.com}directionFilter"/>
 *                     &lt;element name="name_filter" type="{http://services.rai.mu.com}nameFilter"/>
 *                     &lt;element name="reference_filter" type="{http://services.rai.mu.com}referenceFilter"/>
 *                     &lt;element name="service_filter" type="{http://services.rai.mu.com}serviceFilter"/>
 *                     &lt;element name="severity_filter" type="{http://services.rai.mu.com}severityFilter"/>
 *                   &lt;/choice>
 *                 &lt;/sequence>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *         &lt;element name="options" minOccurs="0">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;sequence>
 *                   &lt;element name="option" type="{http://services.rai.mu.com}protocolOption" maxOccurs="unbounded" minOccurs="0"/>
 *                 &lt;/sequence>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *       &lt;/sequence>
 *     &lt;/extension>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "publishedNetworkAttack", propOrder = {
    "evasion",
    "filters",
    "options"
})
public class PublishedNetworkAttack
    extends Attack
{

    @XmlElement(required = true)
    protected Evasion evasion;
    protected PublishedNetworkAttack.Filters filters;
    protected PublishedNetworkAttack.Options options;

    /**
     * Gets the value of the evasion property.
     * 
     * @return
     *     possible object is
     *     {@link Evasion }
     *     
     */
    public Evasion getEvasion() {
        return evasion;
    }

    /**
     * Sets the value of the evasion property.
     * 
     * @param value
     *     allowed object is
     *     {@link Evasion }
     *     
     */
    public void setEvasion(Evasion value) {
        this.evasion = value;
    }

    /**
     * Gets the value of the filters property.
     * 
     * @return
     *     possible object is
     *     {@link PublishedNetworkAttack.Filters }
     *     
     */
    public PublishedNetworkAttack.Filters getFilters() {
        return filters;
    }

    /**
     * Sets the value of the filters property.
     * 
     * @param value
     *     allowed object is
     *     {@link PublishedNetworkAttack.Filters }
     *     
     */
    public void setFilters(PublishedNetworkAttack.Filters value) {
        this.filters = value;
    }

    /**
     * Gets the value of the options property.
     * 
     * @return
     *     possible object is
     *     {@link PublishedNetworkAttack.Options }
     *     
     */
    public PublishedNetworkAttack.Options getOptions() {
        return options;
    }

    /**
     * Sets the value of the options property.
     * 
     * @param value
     *     allowed object is
     *     {@link PublishedNetworkAttack.Options }
     *     
     */
    public void setOptions(PublishedNetworkAttack.Options value) {
        this.options = value;
    }


    /**
     * <p>Java class for anonymous complex type.
     * 
     * <p>The following schema fragment specifies the expected content contained within this class.
     * 
     * <pre>
     * &lt;complexType>
     *   &lt;complexContent>
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       &lt;sequence>
     *         &lt;choice maxOccurs="unbounded" minOccurs="0">
     *           &lt;element name="affected_filter" type="{http://services.rai.mu.com}affectedFilter"/>
     *           &lt;element name="date_filter" type="{http://services.rai.mu.com}dateFilter"/>
     *           &lt;element name="direction_filter" type="{http://services.rai.mu.com}directionFilter"/>
     *           &lt;element name="name_filter" type="{http://services.rai.mu.com}nameFilter"/>
     *           &lt;element name="reference_filter" type="{http://services.rai.mu.com}referenceFilter"/>
     *           &lt;element name="service_filter" type="{http://services.rai.mu.com}serviceFilter"/>
     *           &lt;element name="severity_filter" type="{http://services.rai.mu.com}severityFilter"/>
     *         &lt;/choice>
     *       &lt;/sequence>
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "affectedFilterOrDateFilterOrDirectionFilter"
    })
    public static class Filters {

        @XmlElements({
            @XmlElement(name = "service_filter", type = ServiceFilter.class, nillable = true),
            @XmlElement(name = "reference_filter", type = ReferenceFilter.class, nillable = true),
            @XmlElement(name = "date_filter", type = DateFilter.class, nillable = true),
            @XmlElement(name = "name_filter", type = NameFilter.class, nillable = true),
            @XmlElement(name = "direction_filter", type = DirectionFilter.class, nillable = true),
            @XmlElement(name = "severity_filter", type = SeverityFilter.class, nillable = true),
            @XmlElement(name = "affected_filter", type = AffectedFilter.class, nillable = true)
        })
        protected List<PublishedAttackFilter> affectedFilterOrDateFilterOrDirectionFilter;

        /**
         * Gets the value of the affectedFilterOrDateFilterOrDirectionFilter property.
         * 
         * <p>
         * This accessor method returns a reference to the live list,
         * not a snapshot. Therefore any modification you make to the
         * returned list will be present inside the JAXB object.
         * This is why there is not a <CODE>set</CODE> method for the affectedFilterOrDateFilterOrDirectionFilter property.
         * 
         * <p>
         * For example, to add a new item, do as follows:
         * <pre>
         *    getAffectedFilterOrDateFilterOrDirectionFilter().add(newItem);
         * </pre>
         * 
         * 
         * <p>
         * Objects of the following type(s) are allowed in the list
         * {@link ServiceFilter }
         * {@link ReferenceFilter }
         * {@link DateFilter }
         * {@link NameFilter }
         * {@link DirectionFilter }
         * {@link SeverityFilter }
         * {@link AffectedFilter }
         * 
         * 
         */
        public List<PublishedAttackFilter> getAffectedFilterOrDateFilterOrDirectionFilter() {
            if (affectedFilterOrDateFilterOrDirectionFilter == null) {
                affectedFilterOrDateFilterOrDirectionFilter = new ArrayList<PublishedAttackFilter>();
            }
            return this.affectedFilterOrDateFilterOrDirectionFilter;
        }

    }


    /**
     * <p>Java class for anonymous complex type.
     * 
     * <p>The following schema fragment specifies the expected content contained within this class.
     * 
     * <pre>
     * &lt;complexType>
     *   &lt;complexContent>
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       &lt;sequence>
     *         &lt;element name="option" type="{http://services.rai.mu.com}protocolOption" maxOccurs="unbounded" minOccurs="0"/>
     *       &lt;/sequence>
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "option"
    })
    public static class Options {

        protected List<ProtocolOption> option;

        /**
         * Gets the value of the option property.
         * 
         * <p>
         * This accessor method returns a reference to the live list,
         * not a snapshot. Therefore any modification you make to the
         * returned list will be present inside the JAXB object.
         * This is why there is not a <CODE>set</CODE> method for the option property.
         * 
         * <p>
         * For example, to add a new item, do as follows:
         * <pre>
         *    getOption().add(newItem);
         * </pre>
         * 
         * 
         * <p>
         * Objects of the following type(s) are allowed in the list
         * {@link ProtocolOption }
         * 
         * 
         */
        public List<ProtocolOption> getOption() {
            if (option == null) {
                option = new ArrayList<ProtocolOption>();
            }
            return this.option;
        }

    }

}
